﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Maxleaf.EDI.Client.Models
{
    public class ResetPasswordModel
    {
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "×")]
        [Display(Name = "旧密码：")]
        public string OldPassword { get; set; }

        [DataType(DataType.Password)]
        [Required(ErrorMessage = "×")]
        [Display(Name = "新密码：")]
        public string Password { get; set; }

        [DataType(DataType.Password)]
        [Display(Name = "确认密码：")]
        [Required(ErrorMessage = "×")]
        [Compare("Password", ErrorMessage = "×")]
        public string ConfirmPassword { get; set; }
    }
}